Widget

Undocumented in source.

Members

Functions

addChild
void addChild(Widget[] widgets)
Undocumented in source. Be warned that the author may not have intended to support it.
addChild
void addChild(Widget w)
Undocumented in source. Be warned that the author may not have intended to support it.
findWidgetAt
Widget findWidgetAt(float[2] pos)
Undocumented in source. Be warned that the author may not have intended to support it.
findWidgetAt
Widget findWidgetAt(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
getLocalBounds
Bounds getLocalBounds()
Undocumented in source. Be warned that the author may not have intended to support it.
getWorldBounds
Bounds getWorldBounds()
Undocumented in source. Be warned that the author may not have intended to support it.
onDragEnd
void onDragEnd()
Undocumented in source. Be warned that the author may not have intended to support it.
onDragStart
void onDragStart(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
onDragged
void onDragged(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
onDropReceived
bool onDropReceived(Widget w)

Returns whether it accepted the receive

onFocusEnter
void onFocusEnter()
Undocumented in source. Be warned that the author may not have intended to support it.
onFocusExit
void onFocusExit()
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseClick
void onMouseClick()

Executed when both a mousedown and mouseup is executed when mouse is over this widget

onMouseDown
void onMouseDown()

Executed when the mouse goes down inside the widget

onMouseEnter
void onMouseEnter()

Executed the first time the mouse enters in the widget's boundaries

onMouseExit
void onMouseExit()
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseMove
void onMouseMove()
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseUp
void onMouseUp()

If onMouseDown was executed, onMouseUp will be called even if the mouse is not inside the widget

onRender
void onRender()
Undocumented in source. Be warned that the author may not have intended to support it.
onScroll
void onScroll(float[3] currentScroll, float[3] lastScroll)
Undocumented in source. Be warned that the author may not have intended to support it.
preRender
void preRender()
Undocumented in source. Be warned that the author may not have intended to support it.
render
void render()
Undocumented in source. Be warned that the author may not have intended to support it.
setParent
void setParent(Widget w)
Undocumented in source. Be warned that the author may not have intended to support it.
setPosition
void setPosition(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
update
void update()
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

Bounds
struct Bounds
Undocumented in source.
Transform
struct Transform
Undocumented in source.

Variables

children
Widget[] children;
height
int height;
Undocumented in source.
isDirty
bool isDirty;
Undocumented in source.
isDraggable
bool isDraggable;
Undocumented in source.
isFocused
bool isFocused;
Undocumented in source.
localTransform
Transform localTransform;
Undocumented in source.
parent
Widget parent;
Undocumented in source.
visible
bool visible;
Undocumented in source.
width
int width;
Undocumented in source.
worldTransform
Transform worldTransform;
Undocumented in source.

Meta